package com.zoro.barn.commons.foundation.exceptions;

/**
 * system exception,if you have some extra data to response when error occurred ,you can use this Exception
 *
 * @author zhaoxingwu
 */
public class PayloadBusinessException extends BusinessException {
    private final Object data;

    public PayloadBusinessException(String message, String code, Object data) {
        super(message, code);
        this.data = data;
    }

    public Object getData() {
        return data;
    }
}
